package huatu;

public  class San extends Tuxing {
	double a, b, c;
	public San(String name, double a, double b, double c) {
		super(name);
		this.a = a;
		this.b = b;
		this.c = c;
	}
	@Override
	public double getzhou() {
	
		return (a+b+c);
	}


	@Override
	public double getmian() {
		return Math.sqrt((getzhou() / 2) * ((getzhou() / 2) - a)
				* ((getzhou() / 2) - b) * ((getzhou() / 2) - c));
	}



}
